<template>
  <BasicDrawer
    v-bind="$attrs"
    @register="registerDrawer"
    showFooter
    :title="getTitle"
    width="40%"
    @ok="handleSubmit"
  >
    <index></index>
  </BasicDrawer>
</template>
<script lang="ts" setup>
  import { ref, computed, unref } from 'vue';
  import index from '../ItemBanner/index.vue';
  let getTitle = 'banner';
  import { BasicDrawer, useDrawerInner } from '@/components/Drawer';
  const [registerDrawer, { setDrawerProps, closeDrawer }] = useDrawerInner(async (data) => {
    setDrawerProps({ confirmLoading: false });
  });

  const emit = defineEmits(['success']);
</script>
